package com.wlyuan.open.core.exception;

import com.wlyuan.tools.ResultError;
import lombok.Getter;

/**
 * @author yuanjie
 */

@Getter
public enum OpenError implements ResultError {
    CLIENT_ERROR(18001, "客户端错误"),
    OPEN_API_NOT_FOUND(18102, "接口不存在"),
    CLIENT_NOT_EXISTS(18103, "应用不存在"),
    QR_EXPIRE(18888, "二维码已过期,请重新申请"),
    REGISTER_EXISTS(18666, "账号已注册"),
    ;

    private final int code;
    private final String message;

    OpenError(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
